package at.evonfc.data;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;


public class CartDevice {
	private Device device;
	private Calendar beginDate;
	private Calendar endDate;
	private boolean reserved;
	private List<Equipment> equipments;
	
	public CartDevice(Device device) {
		this.device = device;
	}
	public Device getDevice() {
		return device;
	}
	public void setDevice(Device device) {
		this.device = device;
	}
	public Calendar getBeginDate() {
		return beginDate;
	}
	public void setBeginDate(Calendar beginDate) {
		this.beginDate = beginDate;
	}
	public Calendar getEndDate() {
		return endDate;
	}
	public void setEndDate(Calendar endDate) {
		this.endDate = endDate;
	}
	public boolean isReserved() {
		return reserved;
	}
	public void setReserved(boolean reserved) {
		this.reserved = reserved;
	}
	public List<Equipment> getEquipments() {
		return equipments;
	}
	public void setEquipments(List<Equipment> equipments) {
		this.equipments = equipments;
	}
	
	@Override
	public String toString() {
		return device + " - " + beginDate + " - " + endDate + " - " + equipments;
	}
}
